package com.ikun.admin.modules.gen.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName TableEntityAddOrUpdateVo
 * @Description:
 * @CreateDate: 2024/4/17 13:45
 */
@ApiModel("字段表通用Vo")
@Data
public class TableEntityCommonVo {

    private Long id;

    @ApiModelProperty("表id")
    @NotNull(message = "请选择数据表")
    private Long tableId;

    @ApiModelProperty("字段名")
    @NotNull(message = "字段名称不能为空")
    private String fieldName;

    @ApiModelProperty("字段类型")
    @NotNull(message = "请选择字段类型")
    private String fieldType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("默认值")
    private Integer defaultValue;

    @ApiModelProperty("主键标识")
    private Integer primKey;

    @ApiModelProperty("长度")
    private Integer typeLength;

    @ApiModelProperty("保留位数")
    private Integer reservedBit;

}
